package com.todoapp;

import java.util.Locale;

import org.apache.wicket.util.convert.IConverter;

public class Boolean2YesNoConverter implements IConverter {

	public Object convertToObject(String value, Locale locale) {
		// no-opp
		return null;
	}

	public String convertToString(Object value, Locale locale) {
		return ((Boolean)value) == true ? "Yes":"No";
	}

}
